package shortlink.common.convention.exception;

import shortlink.common.convention.errorcode.BaseErrorCode;
import shortlink.common.convention.errorcode.IErrorCode;

public class RemoteException extends AbstractException {
    public RemoteException(String message) {
        this(message,null, BaseErrorCode.REMOTE_ERROR);
    }

    public RemoteException(String message,IErrorCode errorCode) {
        this(message,null,errorCode);
    }
    public RemoteException(String message,Throwable throwable,IErrorCode errorCode) {
        super(message,throwable,errorCode);
    }

    @Override
    public String toString() {
        return "RemoteException{" +
                "errorCode='" + errorCode + '\'' +
                ", errorMessage='" + errorMessage + '\'' +
                '}';
    }
}
